package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.DoctorEntity;
import com.example.demo.mapper.DoctorMapper;
import com.example.demo.service.DoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DoctorServiceImpl extends ServiceImpl<DoctorMapper, DoctorEntity> implements DoctorService {
    @Autowired
    private DoctorMapper doctorMapper;


    @Override
    public List<DoctorEntity> selectAllDoctor(String truename, String department) {
        return doctorMapper.selectAllDoctor(truename,department);
    }
}
